package com.yupi.oj.judge.codesanbox;

import com.yupi.oj.judge.codesanbox.impl.ExampleCodeSanBox;
import com.yupi.oj.judge.codesanbox.impl.RemoteCodeSanBox;
import com.yupi.oj.judge.codesanbox.impl.ThirdPartyCodeSanBox;

public class CodeSanBoxFactory {
    public static CodeSanBox create(String type){
        switch (type){
            case "remote":
                return new RemoteCodeSanBox();
            case "thirdParty":
                return new ThirdPartyCodeSanBox();
            default:
                return new ExampleCodeSanBox();
        }
    }
}
